package com.gykj.tap.service;

import com.serotonin.modbus4j.exception.ErrorResponseException;
import com.serotonin.modbus4j.exception.ModbusInitException;
import com.serotonin.modbus4j.exception.ModbusTransportException;

/**
 * 读取数据
 * 读取输入线圈状态或者读离散量输入 (开关 输出信号)
 * 读取[02 Input Status 1x]类型 开关数据
 * @author rohto
 *
 */
public interface IReadInputStatus {
	
	/**
	 * 读取[02 Input Status 1x]类型 开关数据
	 * 
	 * @param slaveId
	 * @param offset
	 * @return
	 * @throws ModbusTransportException
	 * @throws ErrorResponseException
	 * @throws ModbusInitException
	 */
	public Boolean readInputStatus(int slaveId, int offset) throws ModbusTransportException, ErrorResponseException, ModbusInitException;

}
